package com.ccrfid.rmc6.repository.business.prison.patrolcheck;

import com.ccrfid.rmc6.entity.business.prison.patrolcheck.PatrolCheckGroupEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface PatrolCheckGroupRepository extends Repository<PatrolCheckGroupEntity, Long> {

    List<PatrolCheckGroupEntity> getAllBy();

    List<PatrolCheckGroupEntity> getAllByNodeType(Integer nodeType);

    List<PatrolCheckGroupEntity> getAllByPid(Long pid);

    PatrolCheckGroupEntity getById(Long id);

    PatrolCheckGroupEntity save(PatrolCheckGroupEntity entity);

    void deleteById(Long id);

    Boolean existsById(Long id);

    Boolean existsByPid(Long pid);
}
